﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UMLTouch.Core.UI;

namespace UMLTouch.Core.ViewModel
{
    public abstract class DiagramItemViewModel : ViewModelBase
    {
        public virtual IDiagramItem Source { get; set; }

        public DiagramItemViewModel(IDiagramItem source)
        {
            Source = source;
        }

        public double X 
        {
            get
            {
                return Source.X;
            }
            set
            {
                Source.X = value;
            }
        }
        public double Y
        {
            get
            {
                return Source.Y;
            }
            set
            {
                Source.Y = value;
            }
        }
    }
}
